package com.hp.dao.impl;

import org.springframework.orm.hibernate5.HibernateTemplate;

import com.hp.dao.CollectionDao;
import com.hp.entity.Collection;

public class CollectionDaoImpl implements CollectionDao {
	private HibernateTemplate hibernateTemplate;
	

	public void setHibernateTemplate(HibernateTemplate hibernateTemplate) {
		this.hibernateTemplate = hibernateTemplate;
	}

	@Override
	public void insertCollection(Collection collection) {
		hibernateTemplate.save(collection);

	}

	@Override
	public void delectCollection(Collection collection) {
		hibernateTemplate.delete(collection);
	}

}
